<!DOCTYPE html>
<html lang='zh-CN'>

<head>
    <meta charset="utf-8">
    <title>test</title>
    <script src="../jquery-3.6.0.min.js"></script>
    <script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
</head>

<body>
   

</body>
<script>
    var url = "https://2020cn.cn/hxsg/api/user_mgr";
   
    $(document).ready(function () {
        $.post(
            url,
            {
                "action": "addUserGoods",
                "user_id": 1,
                "goods_id": 5,
                "counts": 1
            },
            function (res) {

               console.log(res);
            }
        );
       // console.log(obj)
      
       // var user_id = $.cookie('user_id');
     /*   $.post(
            url,
            {
                "action": "test",
                "key":"name",
                "val":"三国新人",
                "user_id":"1",
                "val_type":"1"
            },
            function (res) {
                console.log(res);
                const resobj = JSON.parse(res);
               
            }
        );
        */
    });

</script>

</html>